package com.ideviu.service;

import com.ideviu.model.Negocio;

import javax.jws.WebService;
import javax.ws.rs.DELETE;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import java.util.List;

/**
 * Web Service interface so hierarchy of Generic Manager isn't carried through.
 */
@WebService
@Path("/")
@Produces({"application/json", "application/xml"})
public interface NegocioService {
    /**
     * Recupera un negocio por id.  An exception is thrown if user not found
     *
     * @param negocioId Id del negocio
     * @return Negocio
     */
    @GET
    @Path("/negocio/{id}")
    Negocio getNegocio(@PathParam("id") String negocioId);

}
